package object;

public class StringDemo {
    public static void main(String[] args) {
        String s = new String("hello");
        String s1 = "hello";
        System.out.println(s == s1);//比较地址
        System.out.println(s.equals(s1));//比较内容
    }
}

